<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>礼物列表</title>
    <link rel="stylesheet" href="${base}/layui/css/layui.css">
    <link rel="stylesheet" href="${base}/awesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="${base}/css/admin.css">
    <style>
    	.layui-bg-black{        width: 200px;height: 136px;margin-right: 30px;float: left;text-align: center;font-size: 33px;color: #000000!important;padding-top: 30px;}
    	.hide {display: none;}
    	.checkbox{display: inline-block;}
    	.layui-form-item{font-size: 18px;}
    </style>
</head>
<body  class="layui-layout-body" style="overflow:scroll;">
<#include "/common/left.flt">	
<div class="layui-main" style="position: absolute;left: 205px;top: 20px; width: calc(100% - 210px);" >
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 10px;">
  <legend>操作提示</legend>
</fieldset>
<blockquote class="layui-elem-quote layui-quote-nm">
 	<form action="${base}/navy_user/index" method="post" id="dataForm">
        
    </form>
</blockquote> 

<table class="layui-table" >
	<thead>
        <tr>
             <th>编号</th>
             <th>名称</th>
             <th>图片</th>
             <th>热度</th>
             <th>返点</th>
             <th>排名</th>
             <th>次数</th>
             <th>操作</th>
         </tr>
     </thead>
     <tbody>
     <#list list as one>
     <tr>
     	<td><a href="#" target="_blank">${one.id}</a></td>
     	<td>${one.name}</td>
     	<td><img alt="" src="http://qiniu.static.50dufei.top/${one.icon}"></td>
     	<td>${one.hot_val?default('')}</td>
     	<td>${one.rebate?default('')}%</td>
     	<td>${one.sort?default('')}</td>
     	<td>${one.cnt?default('')}</td>
     	<td></td>
     </tr>
     </#list>
     </tbody>
</table>
<div id="pageDiv"></div>
</body>
<script src="${base}/js/jquery-2.1.4.min.js" type="text/javascript"></script>
<script src="${base}/layui/layui.all.js"></script>
<script type="text/javascript">
layui.use('laypage',function () {
    var laypage = layui.laypage ;
    laypage.render({
        elem:"pageDiv",
        count:${page.totalPage*15},
        limit:15,
        curr:${page.pageNumber},
        layout:['count','prev','page','next','skip'],
        jump:function (obj,first) {
            var page = obj.curr;
            if(!first){
                $("#page").val(page);
                $("#dataForm").submit();
            }
        }
    });
});
</script>
</html>